﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Media;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace Spelprojekt
{
    /// <summary>
    /// Klass för en projektil. Objekt av dessa sparas i en lista i objektet av typen <B>Player</B>.
    /// </summary>
    class Projectile
    {
        public Rectangle projRec = new Rectangle(0, 0, 33, 9);
        public Vector2 Speed = new Vector2(0, 0);

        public Projectile(Rectangle pRec, Vector2 speed)
        {
            projRec.X = pRec.X + 5;
            projRec.Y = pRec.Y + 40;
            Speed = speed;
        }
        public void Move()
        {
            projRec.X += (int)Speed.X;
            projRec.Y += (int)Speed.Y;
        }

    }
}
